﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Routing;
using System.Web.Mvc;

namespace MedicinaMuncii.UI.Mvc.Util
{
    public class CustomControllerFactory : DefaultControllerFactory
    {
        protected override IController GetControllerInstance(RequestContext requestContext, Type controllerType)
        {
            return MedicinaMuncii.IoC.IoCWorker.Resolve(controllerType) as IController;
        }
    }
}